package com.scu.bank.model.dao;

import com.github.pagehelper.PageInfo;
import com.scu.bank.model.base.BaseDao;
import com.scu.bank.model.example.ScienceDynamicExample;
import com.scu.bank.model.pojo.ScienceDynamic;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ScienceDynamicDao extends BaseDao<ScienceDynamic> {
    @Select("SELECT * FROM t_science_dynamic WHERE is_del = 0 AND publish_time <= NOW() AND `status` = 1 limit 0,10")
    @ResultMap("BaseResultMap")
    List<ScienceDynamic> getScienceDynamic();
}